package com.tongji.diy.controller
{
	import com.tongji.diy.event.FurnitureFinalStateEvent;
	import com.tongji.diy.model.FurnitureModel;
	
	import org.robotlegs.mvcs.Command;
	
	public class FurnitureFinalStateCommand extends Command
	{
		[Inject]
		public var event:FurnitureFinalStateEvent;
		[Inject]
		public var model:FurnitureModel;
		
		public function FurnitureFinalStateCommand()
		{
			super();
		}
		
		override public function execute():void
		{
			model.furnitureFinalState(event.finalPosition,event.finalAngle, event.parentIndex);
		}
	}
}